package leetcode_501_600;

public class LeeCode_557 {
    public static void main(String[] args) {

    }
    private static String reverseWords(String s) {
        String[] son = s.split(" ");
        StringBuilder sb = new StringBuilder();
        for (String ss : son) {
            sb.append(new StringBuilder(ss).reverse()).append(" ");
        }
        sb.replace(sb.length() - 1, sb.length(), "");
        return sb.toString();
    }
}
